package com.ruoyi.coal.modules.coalpile.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@TableName("cp_cut_up")
public class CutUpEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value="id",type = IdType.AUTO)
    @ApiModelProperty("分割id")
    private Integer id;

    @ApiModelProperty("分割名称")
    private String name;

    @ApiModelProperty("纵向a1点的id")
    private Integer xa1;

    @ApiModelProperty("纵向a2点的id")
    private Integer xa2;

    @ApiModelProperty("纵向b1点的id")
    private Integer xb1;

    @ApiModelProperty("纵向b2点的id")
    private Integer xb2;

    @ApiModelProperty("横向a1点的id")
    private Integer ya1;

    @ApiModelProperty("横向a2点的id")
    private Integer ya2;

    @ApiModelProperty("横向b1点的id")
    private Integer yb1;

    @ApiModelProperty("横向b2点的id")
    private Integer yb2;

    @ApiModelProperty("煤场id")
    private Integer coalYardId;

    @ApiModelProperty("煤堆密度")
    private Double coalPileDensity;

    @ApiModelProperty("煤堆基准面")
    private Double coalPileGround;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("分割创建时间")
    private Date createTime;

    @ApiModelProperty("分割类型(0:方形 1:圆形)")
    private Integer cutType;

    @TableLogic(value = "1", delval = "0")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "逻辑删除(0:删除 1:保存)", hidden = true)
    private Integer del;

    private Integer measureType;

    private String coalPileVariety;

    @ApiModelProperty("堆提基准数量")
    private Double baseData;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setXa1(Integer xa1) {
        this.xa1 = xa1;
    }

    public void setXa2(Integer xa2) {
        this.xa2 = xa2;
    }

    public void setXb1(Integer xb1) {
        this.xb1 = xb1;
    }

    public void setXb2(Integer xb2) {
        this.xb2 = xb2;
    }

    public void setYa1(Integer ya1) {
        this.ya1 = ya1;
    }

    public void setYa2(Integer ya2) {
        this.ya2 = ya2;
    }

    public void setYb1(Integer yb1) {
        this.yb1 = yb1;
    }

    public void setYb2(Integer yb2) {
        this.yb2 = yb2;
    }

    public void setCoalYardId(Integer coalYardId) {
        this.coalYardId = coalYardId;
    }

    public void setCoalPileDensity(Double coalPileDensity) {
        this.coalPileDensity = coalPileDensity;
    }

    public void setCoalPileGround(Double coalPileGround) {
        this.coalPileGround = coalPileGround;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setCutType(Integer cutType) {
        this.cutType = cutType;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public void setMeasureType(Integer measureType) {
        this.measureType = measureType;
    }

    public void setCoalPileVariety(String coalPileVariety) {
        this.coalPileVariety = coalPileVariety;
    }

    public void setBaseData(Double baseData) {
        this.baseData = baseData;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.CutUpEntity))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.CutUpEntity other = (com.ruoyi.coal.modules.coalpile.domain.CutUpEntity) o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$name = getName(), other$name = other.getName();
        if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name))
            return false;
        Object this$xa1 = getXa1(), other$xa1 = other.getXa1();
        if ((this$xa1 == null) ? (other$xa1 != null) : !this$xa1.equals(other$xa1))
            return false;
        Object this$xa2 = getXa2(), other$xa2 = other.getXa2();
        if ((this$xa2 == null) ? (other$xa2 != null) : !this$xa2.equals(other$xa2))
            return false;
        Object this$xb1 = getXb1(), other$xb1 = other.getXb1();
        if ((this$xb1 == null) ? (other$xb1 != null) : !this$xb1.equals(other$xb1))
            return false;
        Object this$xb2 = getXb2(), other$xb2 = other.getXb2();
        if ((this$xb2 == null) ? (other$xb2 != null) : !this$xb2.equals(other$xb2))
            return false;
        Object this$ya1 = getYa1(), other$ya1 = other.getYa1();
        if ((this$ya1 == null) ? (other$ya1 != null) : !this$ya1.equals(other$ya1))
            return false;
        Object this$ya2 = getYa2(), other$ya2 = other.getYa2();
        if ((this$ya2 == null) ? (other$ya2 != null) : !this$ya2.equals(other$ya2))
            return false;
        Object this$yb1 = getYb1(), other$yb1 = other.getYb1();
        if ((this$yb1 == null) ? (other$yb1 != null) : !this$yb1.equals(other$yb1))
            return false;
        Object this$yb2 = getYb2(), other$yb2 = other.getYb2();
        if ((this$yb2 == null) ? (other$yb2 != null) : !this$yb2.equals(other$yb2))
            return false;
        Object this$coalYardId = getCoalYardId(), other$coalYardId = other.getCoalYardId();
        if ((this$coalYardId == null) ? (other$coalYardId != null) : !this$coalYardId.equals(other$coalYardId))
            return false;
        Object this$coalPileDensity = getCoalPileDensity(), other$coalPileDensity = other.getCoalPileDensity();
        if ((this$coalPileDensity == null) ? (other$coalPileDensity != null) : !this$coalPileDensity.equals(other$coalPileDensity))
            return false;
        Object this$coalPileGround = getCoalPileGround(), other$coalPileGround = other.getCoalPileGround();
        if ((this$coalPileGround == null) ? (other$coalPileGround != null) : !this$coalPileGround.equals(other$coalPileGround))
            return false;
        Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
        if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
            return false;
        Object this$cutType = getCutType(), other$cutType = other.getCutType();
        if ((this$cutType == null) ? (other$cutType != null) : !this$cutType.equals(other$cutType))
            return false;
        Object this$del = getDel(), other$del = other.getDel();
        if ((this$del == null) ? (other$del != null) : !this$del.equals(other$del))
            return false;
        Object this$measureType = getMeasureType(), other$measureType = other.getMeasureType();
        if ((this$measureType == null) ? (other$measureType != null) : !this$measureType.equals(other$measureType))
            return false;
        Object this$coalPileVariety = getCoalPileVariety(), other$coalPileVariety = other.getCoalPileVariety();
        if ((this$coalPileVariety == null) ? (other$coalPileVariety != null) : !this$coalPileVariety.equals(other$coalPileVariety))
            return false;
        Object this$baseData = getBaseData(), other$baseData = other.getBaseData();
        return !((this$baseData == null) ? (other$baseData != null) : !this$baseData.equals(other$baseData));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.CutUpEntity;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $name = getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        Object $xa1 = getXa1();
        result = result * 59 + (($xa1 == null) ? 43 : $xa1.hashCode());
        Object $xa2 = getXa2();
        result = result * 59 + (($xa2 == null) ? 43 : $xa2.hashCode());
        Object $xb1 = getXb1();
        result = result * 59 + (($xb1 == null) ? 43 : $xb1.hashCode());
        Object $xb2 = getXb2();
        result = result * 59 + (($xb2 == null) ? 43 : $xb2.hashCode());
        Object $ya1 = getYa1();
        result = result * 59 + (($ya1 == null) ? 43 : $ya1.hashCode());
        Object $ya2 = getYa2();
        result = result * 59 + (($ya2 == null) ? 43 : $ya2.hashCode());
        Object $yb1 = getYb1();
        result = result * 59 + (($yb1 == null) ? 43 : $yb1.hashCode());
        Object $yb2 = getYb2();
        result = result * 59 + (($yb2 == null) ? 43 : $yb2.hashCode());
        Object $coalYardId = getCoalYardId();
        result = result * 59 + (($coalYardId == null) ? 43 : $coalYardId.hashCode());
        Object $coalPileDensity = getCoalPileDensity();
        result = result * 59 + (($coalPileDensity == null) ? 43 : $coalPileDensity.hashCode());
        Object $coalPileGround = getCoalPileGround();
        result = result * 59 + (($coalPileGround == null) ? 43 : $coalPileGround.hashCode());
        Object $createTime = getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        Object $cutType = getCutType();
        result = result * 59 + (($cutType == null) ? 43 : $cutType.hashCode());
        Object $del = getDel();
        result = result * 59 + (($del == null) ? 43 : $del.hashCode());
        Object $measureType = getMeasureType();
        result = result * 59 + (($measureType == null) ? 43 : $measureType.hashCode());
        Object $coalPileVariety = getCoalPileVariety();
        result = result * 59 + (($coalPileVariety == null) ? 43 : $coalPileVariety.hashCode());
        Object $baseData = getBaseData();
        return result * 59 + (($baseData == null) ? 43 : $baseData.hashCode());
    }

    public String toString() {
        return "CutUpEntity(id=" + getId() + ", name=" + getName() + ", xa1=" + getXa1() + ", xa2=" + getXa2() + ", xb1=" + getXb1() + ", xb2=" + getXb2() + ", ya1=" + getYa1() + ", ya2=" + getYa2() + ", yb1=" + getYb1() + ", yb2=" + getYb2() + ", coalYardId=" + getCoalYardId() + ", coalPileDensity=" + getCoalPileDensity() + ", coalPileGround=" + getCoalPileGround() + ", createTime=" + getCreateTime() + ", cutType=" + getCutType() + ", del=" + getDel() + ", measureType=" + getMeasureType() + ", coalPileVariety=" + getCoalPileVariety() + ", baseData=" + getBaseData() + ")";
    }

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public Integer getXa1() {
        return this.xa1;
    }

    public Integer getXa2() {
        return this.xa2;
    }

    public Integer getXb1() {
        return this.xb1;
    }

    public Integer getXb2() {
        return this.xb2;
    }

    public Integer getYa1() {
        return this.ya1;
    }

    public Integer getYa2() {
        return this.ya2;
    }

    public Integer getYb1() {
        return this.yb1;
    }

    public Integer getYb2() {
        return this.yb2;
    }

    public Integer getCoalYardId() {
        return this.coalYardId;
    }

    public Double getCoalPileDensity() {
        return this.coalPileDensity;
    }

    public Double getCoalPileGround() {
        return this.coalPileGround;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Integer getCutType() {
        return this.cutType;
    }

    public Integer getDel() {
        return this.del;
    }

    public Integer getMeasureType() {
        return this.measureType;
    }

    public String getCoalPileVariety() {
        return this.coalPileVariety;
    }

    public Double getBaseData() {
        return this.baseData;
    }
}

